package com.hsd.znsh.repository;

import com.hsd.znsh.entity.Farm;
import com.hsd.znsh.entity.FarmType;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-04-23 11:54:50
 */
public interface FarmTypeRepository extends JpaRepository<FarmType,Integer> {

    List<FarmType> findByDeleted(Integer deleted);

    List<FarmType> findByNameLikeAndDeleted(String name,Integer deleted);
}
